home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / dev / c / libiconv_src.lha / configure < prev    next >
Encoding:
Text File  |  2000-11-07  |  61.1 KB  |  2,083 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-static         build static libraries [default=no]
  16.   --enable-static=PKGS    only build shared libraries if the current package
  17.                           appears as an element in the PKGS list"
  18. ac_help="$ac_help
  19.   --enable-shared         build shared libraries [default=yes]
  20.   --enable-shared=PKGS    only build shared libraries if the current package
  21.                           appears as an element in the PKGS list"
  22. ac_help="$ac_help
  23.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  24.  
  25. # Initialize some variables set by options.
  26. # The variables have the same names as the options, with
  27. # dashes changed to underlines.
  28. build=NONE
  29. cache_file=./config.cache
  30. exec_prefix=NONE
  31. host=NONE
  32. no_create=
  33. nonopt=NONE
  34. no_recursion=
  35. prefix=NONE
  36. program_prefix=NONE
  37. program_suffix=NONE
  38. program_transform_name=s,x,x,
  39. silent=
  40. site=
  41. srcdir=
  42. target=NONE
  43. verbose=
  44. x_includes=NONE
  45. x_libraries=NONE
  46. bindir='${exec_prefix}/bin'
  47. sbindir='${exec_prefix}/sbin'
  48. libexecdir='${exec_prefix}/libexec'
  49. datadir='${prefix}/share'
  50. sysconfdir='${prefix}/etc'
  51. sharedstatedir='${prefix}/com'
  52. localstatedir='${prefix}/var'
  53. libdir='${exec_prefix}/lib'
  54. includedir='${prefix}/include'
  55. oldincludedir='/usr/include'
  56. infodir='${prefix}/info'
  57. mandir='${prefix}/man'
  58.  
  59. # Initialize some other variables.
  60. subdirs=
  61. MFLAGS= MAKEFLAGS=
  62. SHELL=${CONFIG_SHELL-/bin/sh}
  63. # Maximum number of lines to put in a shell here document.
  64. ac_max_here_lines=12
  65.  
  66. ac_prev=
  67. for ac_option
  68. do
  69.  
  70.   # If the previous option needs an argument, assign it.
  71.   if test -n "$ac_prev"; then
  72.     eval "$ac_prev=\$ac_option"
  73.     ac_prev=
  74.     continue
  75.   fi
  76.  
  77.   case "$ac_option" in
  78.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  79.   *) ac_optarg= ;;
  80.   esac
  81.  
  82.   # Accept the important Cygnus configure options, so we can diagnose typos.
  83.  
  84.   case "$ac_option" in
  85.  
  86.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  87.     ac_prev=bindir ;;
  88.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  89.     bindir="$ac_optarg" ;;
  90.  
  91.   -build | --build | --buil | --bui | --bu)
  92.     ac_prev=build ;;
  93.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  94.     build="$ac_optarg" ;;
  95.  
  96.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  97.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  98.     ac_prev=cache_file ;;
  99.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  100.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  101.     cache_file="$ac_optarg" ;;
  102.  
  103.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  104.     ac_prev=datadir ;;
  105.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  106.   | --da=*)
  107.     datadir="$ac_optarg" ;;
  108.  
  109.   -disable-* | --disable-*)
  110.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  111.     # Reject names that are not valid shell variable names.
  112.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  113.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114.     fi
  115.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116.     eval "enable_${ac_feature}=no" ;;
  117.  
  118.   -enable-* | --enable-*)
  119.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  120.     # Reject names that are not valid shell variable names.
  121.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  122.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  123.     fi
  124.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  125.     case "$ac_option" in
  126.       *=*) ;;
  127.       *) ac_optarg=yes ;;
  128.     esac
  129.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  130.  
  131.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  132.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  133.   | --exec | --exe | --ex)
  134.     ac_prev=exec_prefix ;;
  135.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  136.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  137.   | --exec=* | --exe=* | --ex=*)
  138.     exec_prefix="$ac_optarg" ;;
  139.  
  140.   -gas | --gas | --ga | --g)
  141.     # Obsolete; use --with-gas.
  142.     with_gas=yes ;;
  143.  
  144.   -help | --help | --hel | --he)
  145.     # Omit some internal or obsolete options to make the list less imposing.
  146.     # This message is too long to be a string in the A/UX 3.1 sh.
  147.     cat << EOF
  148. Usage: configure [options] [host]
  149. Options: [defaults in brackets after descriptions]
  150. Configuration:
  151.   --cache-file=FILE       cache test results in FILE
  152.   --help                  print this message
  153.   --no-create             do not create output files
  154.   --quiet, --silent       do not print \`checking...' messages
  155.   --version               print the version of autoconf that created configure
  156. Directory and file names:
  157.   --prefix=PREFIX         install architecture-independent files in PREFIX
  158.                           [$ac_default_prefix]
  159.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  160.                           [same as prefix]
  161.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  162.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  163.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  164.   --datadir=DIR           read-only architecture-independent data in DIR
  165.                           [PREFIX/share]
  166.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  167.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  168.                           [PREFIX/com]
  169.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  170.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  171.   --includedir=DIR        C header files in DIR [PREFIX/include]
  172.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  173.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  174.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  175.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  176.   --program-prefix=PREFIX prepend PREFIX to installed program names
  177.   --program-suffix=SUFFIX append SUFFIX to installed program names
  178.   --program-transform-name=PROGRAM
  179.                           run sed PROGRAM on installed program names
  180. EOF
  181.     cat << EOF
  182. Host type:
  183.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  184.   --host=HOST             configure for HOST [guessed]
  185.   --target=TARGET         configure for TARGET [TARGET=HOST]
  186. Features and packages:
  187.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  188.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  189.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  190.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  191.   --x-includes=DIR        X include files are in DIR
  192.   --x-libraries=DIR       X library files are in DIR
  193. EOF
  194.     if test -n "$ac_help"; then
  195.       echo "--enable and --with options recognized:$ac_help"
  196.     fi
  197.     exit 0 ;;
  198.  
  199.   -host | --host | --hos | --ho)
  200.     ac_prev=host ;;
  201.   -host=* | --host=* | --hos=* | --ho=*)
  202.     host="$ac_optarg" ;;
  203.  
  204.   -includedir | --includedir | --includedi | --included | --include \
  205.   | --includ | --inclu | --incl | --inc)
  206.     ac_prev=includedir ;;
  207.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  208.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  209.     includedir="$ac_optarg" ;;
  210.  
  211.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  212.     ac_prev=infodir ;;
  213.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  214.     infodir="$ac_optarg" ;;
  215.  
  216.   -libdir | --libdir | --libdi | --libd)
  217.     ac_prev=libdir ;;
  218.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  219.     libdir="$ac_optarg" ;;
  220.  
  221.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  222.   | --libexe | --libex | --libe)
  223.     ac_prev=libexecdir ;;
  224.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  225.   | --libexe=* | --libex=* | --libe=*)
  226.     libexecdir="$ac_optarg" ;;
  227.  
  228.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  229.   | --localstate | --localstat | --localsta | --localst \
  230.   | --locals | --local | --loca | --loc | --lo)
  231.     ac_prev=localstatedir ;;
  232.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  233.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  234.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  235.     localstatedir="$ac_optarg" ;;
  236.  
  237.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  238.     ac_prev=mandir ;;
  239.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  240.     mandir="$ac_optarg" ;;
  241.  
  242.   -nfp | --nfp | --nf)
  243.     # Obsolete; use --without-fp.
  244.     with_fp=no ;;
  245.  
  246.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  247.   | --no-cr | --no-c)
  248.     no_create=yes ;;
  249.  
  250.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  251.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  252.     no_recursion=yes ;;
  253.  
  254.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  255.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  256.   | --oldin | --oldi | --old | --ol | --o)
  257.     ac_prev=oldincludedir ;;
  258.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  259.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  260.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  261.     oldincludedir="$ac_optarg" ;;
  262.  
  263.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  264.     ac_prev=prefix ;;
  265.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  266.     prefix="$ac_optarg" ;;
  267.  
  268.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  269.   | --program-pre | --program-pr | --program-p)
  270.     ac_prev=program_prefix ;;
  271.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  272.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  273.     program_prefix="$ac_optarg" ;;
  274.  
  275.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  276.   | --program-suf | --program-su | --program-s)
  277.     ac_prev=program_suffix ;;
  278.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  279.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  280.     program_suffix="$ac_optarg" ;;
  281.  
  282.   -program-transform-name | --program-transform-name \
  283.   | --program-transform-nam | --program-transform-na \
  284.   | --program-transform-n | --program-transform- \
  285.   | --program-transform | --program-transfor \
  286.   | --program-transfo | --program-transf \
  287.   | --program-trans | --program-tran \
  288.   | --progr-tra | --program-tr | --program-t)
  289.     ac_prev=program_transform_name ;;
  290.   -program-transform-name=* | --program-transform-name=* \
  291.   | --program-transform-nam=* | --program-transform-na=* \
  292.   | --program-transform-n=* | --program-transform-=* \
  293.   | --program-transform=* | --program-transfor=* \
  294.   | --program-transfo=* | --program-transf=* \
  295.   | --program-trans=* | --program-tran=* \
  296.   | --progr-tra=* | --program-tr=* | --program-t=*)
  297.     program_transform_name="$ac_optarg" ;;
  298.  
  299.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  300.   | -silent | --silent | --silen | --sile | --sil)
  301.     silent=yes ;;
  302.  
  303.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  304.     ac_prev=sbindir ;;
  305.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  306.   | --sbi=* | --sb=*)
  307.     sbindir="$ac_optarg" ;;
  308.  
  309.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  310.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  311.   | --sharedst | --shareds | --shared | --share | --shar \
  312.   | --sha | --sh)
  313.     ac_prev=sharedstatedir ;;
  314.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  315.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  316.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  317.   | --sha=* | --sh=*)
  318.     sharedstatedir="$ac_optarg" ;;
  319.  
  320.   -site | --site | --sit)
  321.     ac_prev=site ;;
  322.   -site=* | --site=* | --sit=*)
  323.     site="$ac_optarg" ;;
  324.  
  325.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  326.     ac_prev=srcdir ;;
  327.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  328.     srcdir="$ac_optarg" ;;
  329.  
  330.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  331.   | --syscon | --sysco | --sysc | --sys | --sy)
  332.     ac_prev=sysconfdir ;;
  333.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  334.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  335.     sysconfdir="$ac_optarg" ;;
  336.  
  337.   -target | --target | --targe | --targ | --tar | --ta | --t)
  338.     ac_prev=target ;;
  339.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  340.     target="$ac_optarg" ;;
  341.  
  342.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  343.     verbose=yes ;;
  344.  
  345.   -version | --version | --versio | --versi | --vers)
  346.     echo "configure generated by autoconf version 2.13"
  347.     exit 0 ;;
  348.  
  349.   -with-* | --with-*)
  350.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  351.     # Reject names that are not valid shell variable names.
  352.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  353.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  354.     fi
  355.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  356.     case "$ac_option" in
  357.       *=*) ;;
  358.       *) ac_optarg=yes ;;
  359.     esac
  360.     eval "with_${ac_package}='$ac_optarg'" ;;
  361.  
  362.   -without-* | --without-*)
  363.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  364.     # Reject names that are not valid shell variable names.
  365.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  366.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  367.     fi
  368.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  369.     eval "with_${ac_package}=no" ;;
  370.  
  371.   --x)
  372.     # Obsolete; use --with-x.
  373.     with_x=yes ;;
  374.  
  375.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  376.   | --x-incl | --x-inc | --x-in | --x-i)
  377.     ac_prev=x_includes ;;
  378.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  379.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  380.     x_includes="$ac_optarg" ;;
  381.  
  382.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  383.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  384.     ac_prev=x_libraries ;;
  385.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  386.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  387.     x_libraries="$ac_optarg" ;;
  388.  
  389.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  390.     ;;
  391.  
  392.   *)
  393.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  394.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  395.     fi
  396.     if test "x$nonopt" != xNONE; then
  397.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  398.     fi
  399.     nonopt="$ac_option"
  400.     ;;
  401.  
  402.   esac
  403. done
  404.  
  405. if test -n "$ac_prev"; then
  406.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  407. fi
  408.  
  409. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  410.  
  411. # File descriptor usage:
  412. # 0 standard input
  413. # 1 file creation
  414. # 2 errors and warnings
  415. # 3 some systems may open it to /dev/tty
  416. # 4 used on the Kubota Titan
  417. # 6 checking for... messages and results
  418. # 5 compiler messages saved in config.log
  419. if test "$silent" = yes; then
  420.   exec 6>/dev/null
  421. else
  422.   exec 6>&1
  423. fi
  424. exec 5>./config.log
  425.  
  426. echo "\
  427. This file contains any messages produced by compilers while
  428. running configure, to aid debugging if configure makes a mistake.
  429. " 1>&5
  430.  
  431. # Strip out --no-create and --no-recursion so they do not pile up.
  432. # Also quote any args containing shell metacharacters.
  433. ac_configure_args=
  434. for ac_arg
  435. do
  436.   case "$ac_arg" in
  437.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  438.   | --no-cr | --no-c) ;;
  439.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  440.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  441.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  442.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  443.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  444.   esac
  445. done
  446.  
  447. # NLS nuisances.
  448. # Only set these to C if already set.  These must not be set unconditionally
  449. # because not all systems understand e.g. LANG=C (notably SCO).
  450. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  451. # Non-C LC_CTYPE values break the ctype check.
  452. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  453. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  454. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  455. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  456.  
  457. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  458. rm -rf conftest* confdefs.h
  459. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  460. echo > confdefs.h
  461.  
  462. # A filename unique to this package, relative to the directory that
  463. # configure is in, which we can look for to find out if srcdir is correct.
  464. ac_unique_file=src/iconv.c
  465.  
  466. # Find the source files, if location was not specified.
  467. if test -z "$srcdir"; then
  468.   ac_srcdir_defaulted=yes
  469.   # Try the directory containing this script, then its parent.
  470.   ac_prog=$0
  471.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  472.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  473.   srcdir=$ac_confdir
  474.   if test ! -r $srcdir/$ac_unique_file; then
  475.     srcdir=..
  476.   fi
  477. else
  478.   ac_srcdir_defaulted=no
  479. fi
  480. if test ! -r $srcdir/$ac_unique_file; then
  481.   if test "$ac_srcdir_defaulted" = yes; then
  482.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  483.   else
  484.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  485.   fi
  486. fi
  487. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  488.  
  489. # Prefer explicitly selected file to automatically selected ones.
  490. if test -z "$CONFIG_SITE"; then
  491.   if test "x$prefix" != xNONE; then
  492.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  493.   else
  494.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  495.   fi
  496. fi
  497. for ac_site_file in $CONFIG_SITE; do
  498.   if test -r "$ac_site_file"; then
  499.     echo "loading site script $ac_site_file"
  500.     . "$ac_site_file"
  501.   fi
  502. done
  503.  
  504. if test -r "$cache_file"; then
  505.   echo "loading cache $cache_file"
  506.   . $cache_file
  507. else
  508.   echo "creating cache $cache_file"
  509.   > $cache_file
  510. fi
  511.  
  512. ac_ext=c
  513. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  514. ac_cpp='$CPP $CPPFLAGS'
  515. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  516. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  517. cross_compiling=$ac_cv_prog_cc_cross
  518.  
  519. ac_exeext=
  520. ac_objext=o
  521. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  522.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  523.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  524.     ac_n= ac_c='
  525. ' ac_t='    ' ac_tt=
  526.   else
  527.     ac_n=-n ac_c= ac_t= ac_tt='
  528.          '
  529.   fi
  530. else
  531.   ac_n= ac_c='\c' ac_t= ac_tt='
  532.          '
  533. fi
  534.  
  535.  
  536.  
  537. echo $ac_n "checking whether ${MAKE-make} sets \$(MAKE)""... $ac_c" 1>&6
  538. echo "configure:539: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  539. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  540. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  541.   echo $ac_n "(cached) $ac_c" 1>&6
  542. else
  543.   cat > conftestmake <<\EOF
  544. all:
  545.     @echo 'ac_maketemp="${MAKE}"'
  546. EOF
  547. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  548. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  549. if test -n "$ac_maketemp"; then
  550.   eval ac_cv_prog_make_${ac_make}_set=yes
  551. else
  552.   eval ac_cv_prog_make_${ac_make}_set=no
  553. fi
  554. rm -f conftestmake
  555. fi
  556. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  557.   echo "$ac_t""yes" 1>&6
  558.   SET_MAKE=
  559. else
  560.   echo "$ac_t""no" 1>&6
  561.   SET_MAKE="MAKE=${MAKE-make}"
  562. fi
  563.  
  564.  
  565.  
  566. # Extract the first word of "gcc", so it can be a program name with args.
  567. set dummy gcc; ac_word=$2
  568. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  569. echo "configure:570: checking for $ac_word" >&5
  570. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  571.   echo $ac_n "(cached) $ac_c" 1>&6
  572. else
  573.   if test -n "$CC"; then
  574.   ac_cv_prog_CC="$CC" # Let the user override the test.
  575. else
  576.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  577.   ac_dummy="$PATH"
  578.   for ac_dir in $ac_dummy; do
  579.     test -z "$ac_dir" && ac_dir=.
  580.     if test -f $ac_dir/$ac_word; then
  581.       ac_cv_prog_CC="gcc"
  582.       break
  583.     fi
  584.   done
  585.   IFS="$ac_save_ifs"
  586. fi
  587. fi
  588. CC="$ac_cv_prog_CC"
  589. if test -n "$CC"; then
  590.   echo "$ac_t""$CC" 1>&6
  591. else
  592.   echo "$ac_t""no" 1>&6
  593. fi
  594.  
  595. if test -z "$CC"; then
  596.   # Extract the first word of "cc", so it can be a program name with args.
  597. set dummy cc; ac_word=$2
  598. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  599. echo "configure:600: checking for $ac_word" >&5
  600. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  601.   echo $ac_n "(cached) $ac_c" 1>&6
  602. else
  603.   if test -n "$CC"; then
  604.   ac_cv_prog_CC="$CC" # Let the user override the test.
  605. else
  606.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  607.   ac_prog_rejected=no
  608.   ac_dummy="$PATH"
  609.   for ac_dir in $ac_dummy; do
  610.     test -z "$ac_dir" && ac_dir=.
  611.     if test -f $ac_dir/$ac_word; then
  612.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  613.         ac_prog_rejected=yes
  614.         continue
  615.       fi
  616.       ac_cv_prog_CC="cc"
  617.       break
  618.     fi
  619.   done
  620.   IFS="$ac_save_ifs"
  621. if test $ac_prog_rejected = yes; then
  622.   # We found a bogon in the path, so make sure we never use it.
  623.   set dummy $ac_cv_prog_CC
  624.   shift
  625.   if test $# -gt 0; then
  626.     # We chose a different compiler from the bogus one.
  627.     # However, it has the same basename, so the bogon will be chosen
  628.     # first if we set CC to just the basename; use the full file name.
  629.     shift
  630.     set dummy "$ac_dir/$ac_word" "$@"
  631.     shift
  632.     ac_cv_prog_CC="$@"
  633.   fi
  634. fi
  635. fi
  636. fi
  637. CC="$ac_cv_prog_CC"
  638. if test -n "$CC"; then
  639.   echo "$ac_t""$CC" 1>&6
  640. else
  641.   echo "$ac_t""no" 1>&6
  642. fi
  643.  
  644.   if test -z "$CC"; then
  645.     case "`uname -s`" in
  646.     *win32* | *WIN32*)
  647.       # Extract the first word of "cl", so it can be a program name with args.
  648. set dummy cl; ac_word=$2
  649. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  650. echo "configure:651: checking for $ac_word" >&5
  651. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  652.   echo $ac_n "(cached) $ac_c" 1>&6
  653. else
  654.   if test -n "$CC"; then
  655.   ac_cv_prog_CC="$CC" # Let the user override the test.
  656. else
  657.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  658.   ac_dummy="$PATH"
  659.   for ac_dir in $ac_dummy; do
  660.     test -z "$ac_dir" && ac_dir=.
  661.     if test -f $ac_dir/$ac_word; then
  662.       ac_cv_prog_CC="cl"
  663.       break
  664.     fi
  665.   done
  666.   IFS="$ac_save_ifs"
  667. fi
  668. fi
  669. CC="$ac_cv_prog_CC"
  670. if test -n "$CC"; then
  671.   echo "$ac_t""$CC" 1>&6
  672. else
  673.   echo "$ac_t""no" 1>&6
  674. fi
  675.  ;;
  676.     esac
  677.   fi
  678.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  679. fi
  680.  
  681. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  682. echo "configure:683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  683.  
  684. ac_ext=c
  685. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  686. ac_cpp='$CPP $CPPFLAGS'
  687. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  688. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  689. cross_compiling=$ac_cv_prog_cc_cross
  690.  
  691. cat > conftest.$ac_ext << EOF
  692.  
  693. #line 694 "configure"
  694. #include "confdefs.h"
  695.  
  696. int main(){return(0);}
  697. EOF
  698. if { (eval echo configure:699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  699.   ac_cv_prog_cc_works=yes
  700.   # If we can't run a trivial program, we are probably using a cross compiler.
  701.   if (./conftest; exit) 2>/dev/null; then
  702.     ac_cv_prog_cc_cross=no
  703.   else
  704.     ac_cv_prog_cc_cross=yes
  705.   fi
  706. else
  707.   echo "configure: failed program was:" >&5
  708.   cat conftest.$ac_ext >&5
  709.   ac_cv_prog_cc_works=no
  710. fi
  711. rm -fr conftest*
  712. ac_ext=c
  713. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  714. ac_cpp='$CPP $CPPFLAGS'
  715. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  716. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  717. cross_compiling=$ac_cv_prog_cc_cross
  718.  
  719. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  720. if test $ac_cv_prog_cc_works = no; then
  721.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  722. fi
  723. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  724. echo "configure:725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  725. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  726. cross_compiling=$ac_cv_prog_cc_cross
  727.  
  728. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  729. echo "configure:730: checking whether we are using GNU C" >&5
  730. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  731.   echo $ac_n "(cached) $ac_c" 1>&6
  732. else
  733.   cat > conftest.c <<EOF
  734. #ifdef __GNUC__
  735.   yes;
  736. #endif
  737. EOF
  738. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  739.   ac_cv_prog_gcc=yes
  740. else
  741.   ac_cv_prog_gcc=no
  742. fi
  743. fi
  744. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  745.  
  746. if test $ac_cv_prog_gcc = yes; then
  747.   GCC=yes
  748. else
  749.   GCC=
  750. fi
  751.  
  752. ac_test_CFLAGS="${CFLAGS+set}"
  753. ac_save_CFLAGS="$CFLAGS"
  754. CFLAGS=
  755. if test "$ac_test_CFLAGS" = set; then
  756.   CFLAGS="$ac_save_CFLAGS"
  757. else
  758.   if test "$GCC" = yes; then
  759.     # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
  760.     # that results from __OPTIMIZE__ being defined for CC but not CPP.
  761.     if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
  762.       : # already optimizing
  763.     else
  764.       CC="$CC -O"
  765.       ac_cv_prog_CC="$CC"
  766.     fi
  767.   else
  768.     CFLAGS=
  769.   fi
  770. fi
  771.  
  772. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  773. echo "configure:774: checking how to run the C preprocessor" >&5
  774. # On Suns, sometimes $CPP names a directory.
  775. if test -n "$CPP" && test -d "$CPP"; then
  776.   CPP=
  777. fi
  778. if test -z "$CPP"; then
  779. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  780.   echo $ac_n "(cached) $ac_c" 1>&6
  781. else
  782.     # This must be in double quotes, not single quotes, because CPP may get
  783.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  784.   CPP="${CC-cc} -E"
  785.   if test -n "$GCC"; then
  786.     # Suppress warning messages.
  787.     CPP="$CPP -w"
  788.   fi
  789.   # On the NeXT, cc -E runs the code through the compiler's parser,
  790.   # not just through cpp. On NeXTstep 3.1 the same holds for /lib/cpp; use
  791.   # "cc -E -traditional-cpp" instead.
  792.   cat > conftest.$ac_ext <<EOF
  793. #line 794 "configure"
  794. #include "confdefs.h"
  795. #include <assert.h>
  796. Syntax Error
  797. EOF
  798. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  799. { (eval echo configure:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  800. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  801. if test -z "$ac_err"; then
  802.   rm -rf conftest*
  803.   ac_have_cpp=1
  804. else
  805.   echo "$ac_err" >&5
  806.   echo "configure: failed program was:" >&5
  807.   cat conftest.$ac_ext >&5
  808. fi
  809. rm -f conftest*
  810.   if test -z "$ac_have_cpp"; then
  811.     CPP="${CC-cc} -E -traditional-cpp"
  812.     cat > conftest.$ac_ext <<EOF
  813. #line 814 "configure"
  814. #include "confdefs.h"
  815. #include <assert.h>
  816. Syntax Error
  817. EOF
  818. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  819. { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  820. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  821. if test -z "$ac_err"; then
  822.   rm -rf conftest*
  823.   ac_have_cpp=1
  824. else
  825.   echo "$ac_err" >&5
  826.   echo "configure: failed program was:" >&5
  827.   cat conftest.$ac_ext >&5
  828. fi
  829. rm -f conftest*
  830.     if test -n "$ac_have_cpp"; then
  831.       CC="${CC-cc} -traditional-cpp"
  832.     else
  833.       CPP="${CC-cc} -nologo -E"
  834.       cat > conftest.$ac_ext <<EOF
  835. #line 836 "configure"
  836. #include "confdefs.h"
  837. #include <assert.h>
  838. Syntax Error
  839. EOF
  840. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  841. { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  842. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  843. if test -z "$ac_err"; then
  844.   rm -rf conftest*
  845.   ac_have_cpp=1
  846. else
  847.   echo "$ac_err" >&5
  848.   echo "configure: failed program was:" >&5
  849.   cat conftest.$ac_ext >&5
  850. fi
  851. rm -f conftest*
  852.       if test -n "$ac_have_cpp"; then
  853.         CC="${CC-cc} -nologo"
  854.       else
  855.         CPP=/lib/cpp
  856.       fi
  857.     fi
  858.   fi
  859.   ac_cv_prog_CC="$CC"
  860.   ac_cv_prog_CPP="$CPP"
  861. fi
  862.   CPP="$ac_cv_prog_CPP"
  863. else
  864.   ac_cv_prog_CPP="$CPP"
  865. fi
  866. echo "$ac_t""$CPP" 1>&6
  867.  
  868. if test $ac_cv_prog_gcc = yes; then
  869.   echo $ac_n "checking whether -traditional is needed for ${CC-cc} on this system""... $ac_c" 1>&6
  870. echo "configure:871: checking whether -traditional is needed for ${CC-cc} on this system" >&5
  871. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  872.   echo $ac_n "(cached) $ac_c" 1>&6
  873. else
  874.     ac_pattern="Autoconf.*'x'"
  875.   cat > conftest.$ac_ext <<EOF
  876. #line 877 "configure"
  877. #include "confdefs.h"
  878. #include <sgtty.h>
  879. Autoconf TIOCGETP
  880. EOF
  881. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  882.   egrep "$ac_pattern" >/dev/null 2>&1; then
  883.   rm -rf conftest*
  884.   ac_cv_prog_gcc_traditional=yes
  885. else
  886.   rm -rf conftest*
  887.   ac_cv_prog_gcc_traditional=no
  888. fi
  889. rm -f conftest*
  890.  
  891.  
  892.   if test $ac_cv_prog_gcc_traditional = no; then
  893.     cat > conftest.$ac_ext <<EOF
  894. #line 895 "configure"
  895. #include "confdefs.h"
  896. #include <termio.h>
  897. Autoconf TCGETA
  898. EOF
  899. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  900.   egrep "$ac_pattern" >/dev/null 2>&1; then
  901.   rm -rf conftest*
  902.   ac_cv_prog_gcc_traditional=yes
  903. fi
  904. rm -f conftest*
  905.  
  906.   fi
  907.   if test $ac_cv_prog_gcc_traditional = no; then
  908.     # On some USL SVR4 systems, gcc's fixinc.svr4 modifies <signal.h> and
  909.     # <sys/signal.h> in such a way that "#include <signal.h>" results in a
  910.     # syntax error because of `sigset_t' if gcc is called with __STDC__=1
  911.     # but __STRICT_ANSI__ undefined. Remedy: use -traditional.
  912.     ac_prog='
  913. #include <sys/types.h>
  914. #include <signal.h>
  915. #ifdef __cplusplus
  916. extern "C" void exit(int);
  917. #endif
  918. int main() { exit(0); }'
  919.     echo "$ac_prog" > conftest.c
  920.     if eval $ac_link; then
  921.       :
  922.     else
  923.       ac_prog='
  924. #undef __STDC__
  925. #include <sys/types.h>
  926. #include <signal.h>
  927. #ifdef __cplusplus
  928. extern "C" void exit(int);
  929. #endif
  930. int main() { exit(0); }'
  931.       echo "$ac_prog" > conftest.c
  932.       if eval $ac_link; then
  933.         ac_cv_prog_gcc_traditional=yes
  934.       fi
  935.     fi
  936.     rm -f conftest*
  937.   fi
  938. fi
  939. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  940.   if test $ac_cv_prog_gcc_traditional = yes; then
  941.     CC="$CC -traditional"
  942.   fi
  943. fi
  944.  
  945. # Extract the first word of "ranlib", so it can be a program name with args.
  946. set dummy ranlib; ac_word=$2
  947. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  948. echo "configure:949: checking for $ac_word" >&5
  949. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  950.   echo $ac_n "(cached) $ac_c" 1>&6
  951. else
  952.   if test -n "$RANLIB"; then
  953.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  954. else
  955.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  956.   ac_dummy="$PATH"
  957.   for ac_dir in $ac_dummy; do
  958.     test -z "$ac_dir" && ac_dir=.
  959.     if test -f $ac_dir/$ac_word; then
  960.       ac_cv_prog_RANLIB="ranlib"
  961.       break
  962.     fi
  963.   done
  964.   IFS="$ac_save_ifs"
  965.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
  966. fi
  967. fi
  968. RANLIB="$ac_cv_prog_RANLIB"
  969. if test -n "$RANLIB"; then
  970.   echo "$ac_t""$RANLIB" 1>&6
  971. else
  972.   echo "$ac_t""no" 1>&6
  973. fi
  974.  
  975. # Find a good install program.  We prefer a C program (faster),
  976. # so one script is as good as another.  But avoid the broken or
  977. # incompatible versions:
  978. # SysV /etc/install, /usr/sbin/install
  979. # SunOS /usr/etc/install
  980. # IRIX /sbin/install
  981. # AIX /bin/install
  982. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  983. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  984. # ./install, which can be erroneously created by make from ./install.sh.
  985. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  986. echo "configure:987: checking for a BSD compatible install" >&5
  987. if test -z "$INSTALL"; then
  988. if eval "test \"`echo '$''{'cl_cv_path_install'+set}'`\" = set"; then
  989.   echo $ac_n "(cached) $ac_c" 1>&6
  990. else
  991.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  992.   for ac_dir in $PATH; do
  993.     # Account for people who put trailing slashes in PATH elements.
  994.     case "$ac_dir/" in
  995.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  996.     *)
  997.       # OSF1 and SCO ODT 3.0 have their own names for install.
  998.       for ac_prog in ginstall installbsd scoinst install; do
  999.         if test -f $ac_dir/$ac_prog; then
  1000.       if test $ac_prog = install &&
  1001.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1002.         # AIX install.  It has an incompatible calling convention.
  1003.         # OSF/1 installbsd also uses dspmsg, but is usable.
  1004.         :
  1005.       else
  1006.         if test $ac_prog = installbsd &&
  1007.           grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then
  1008.           # AIX installbsd doesn't work without option "-g".
  1009.           :
  1010.         else
  1011.           cl_cv_path_install="$ac_dir/$ac_prog -c"
  1012.           break 2
  1013.         fi
  1014.       fi
  1015.     fi
  1016.       done
  1017.       ;;
  1018.     esac
  1019.   done
  1020.   IFS="$ac_save_ifs"
  1021.   # As a last resort, use cp.
  1022.   test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
  1023.  
  1024. fi
  1025.   INSTALL="$cl_cv_path_install"
  1026. fi
  1027. echo "$ac_t""$INSTALL" 1>&6
  1028. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1029. # It thinks the first close brace ends the variable substitution.
  1030. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
  1031. if test -z "$INSTALL_DATA"; then
  1032.   case "$INSTALL" in
  1033.     cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
  1034.     * )         INSTALL_DATA='$(INSTALL) -m 644' ;;
  1035.   esac
  1036. fi
  1037.  
  1038. echo $ac_n "checking how to copy files""... $ac_c" 1>&6
  1039. echo "configure:1040: checking how to copy files" >&5
  1040. if eval "test \"`echo '$''{'cl_cv_prog_cp'+set}'`\" = set"; then
  1041.   echo $ac_n "(cached) $ac_c" 1>&6
  1042. else
  1043.   
  1044. echo "blabla" > conftest.x
  1045. err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
  1046. if test -z "$err"; then
  1047.   cl_cv_prog_cp='cp -p'
  1048. else
  1049.   cl_cv_prog_cp='cp'
  1050. fi
  1051. rm -f conftest*
  1052.  
  1053. fi
  1054. echo "$ac_t""$cl_cv_prog_cp" 1>&6
  1055. CP="$cl_cv_prog_cp"
  1056.  
  1057. echo $ac_n "checking how to make hard links""... $ac_c" 1>&6
  1058. echo "configure:1059: checking how to make hard links" >&5
  1059. if eval "test \"`echo '$''{'cl_cv_prog_LN'+set}'`\" = set"; then
  1060.   echo $ac_n "(cached) $ac_c" 1>&6
  1061. else
  1062.   
  1063. rm -f conftestdata conftestfile
  1064. echo data > conftestfile
  1065. if ln conftestfile conftestdata 2>/dev/null; then
  1066.   cl_cv_prog_LN=ln
  1067. else
  1068.   cl_cv_prog_LN="$cl_cv_prog_cp"
  1069. fi
  1070. rm -f conftestdata conftestfile
  1071.  
  1072. fi
  1073. echo "$ac_t""$cl_cv_prog_LN" 1>&6
  1074. LN="$cl_cv_prog_LN"
  1075.  
  1076. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1077. echo "configure:1078: checking whether ln -s works" >&5
  1078. if eval "test \"`echo '$''{'cl_cv_prog_LN_S'+set}'`\" = set"; then
  1079.   echo $ac_n "(cached) $ac_c" 1>&6
  1080. else
  1081.   
  1082. rm -f conftestdata
  1083. if ln -s X conftestdata 2>/dev/null; then
  1084.   cl_cv_prog_LN_S="ln -s"
  1085. else
  1086.   cl_cv_prog_LN_S="$cl_cv_prog_LN"
  1087. fi
  1088. rm -f conftestdata
  1089.  
  1090. fi
  1091. if test "$cl_cv_prog_LN_S" = "ln -s"; then
  1092.   echo "$ac_t""yes" 1>&6
  1093. else
  1094.   echo "$ac_t""no" 1>&6
  1095. fi
  1096. LN_S="$cl_cv_prog_LN_S"
  1097.  
  1098.  
  1099.  
  1100.  ac_aux_dir=${srcdir}/autoconf
  1101. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1102. echo "configure:1103: checking host system type" >&5
  1103. if eval "test \"`echo '$''{'cl_cv_host'+set}'`\" = set"; then
  1104.   echo $ac_n "(cached) $ac_c" 1>&6
  1105. else
  1106.   
  1107. ac_config_guess=$ac_aux_dir/config.guess
  1108. ac_config_sub=$ac_aux_dir/config.sub
  1109. # Make sure we can run config.sub.
  1110. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  1111. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1112. fi
  1113. host_alias=$host
  1114. case "$host_alias" in
  1115. NONE)
  1116.   case $nonopt in
  1117.   NONE)         host_alias=`export CC; $ac_config_guess` ;;
  1118.   *)    host_alias=$nonopt ;;
  1119.   esac ;;
  1120. esac
  1121. # Don't fail just because the system is not listed in GNU's database.
  1122. if test -n "$host_alias"; then
  1123.   host=`$ac_config_sub $host_alias`
  1124. else
  1125.   host=unknown-unknown-unknown
  1126. fi
  1127. cl_cv_host="$host"
  1128.  
  1129. fi
  1130. echo "$ac_t""$cl_cv_host" 1>&6
  1131. host="$cl_cv_host"
  1132. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1133. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1134. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1135.  
  1136.  
  1137.  
  1138. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1139. echo "configure:1140: checking for AIX" >&5
  1140. if eval "test \"`echo '$''{'ac_cv_sys_aix'+set}'`\" = set"; then
  1141.   echo $ac_n "(cached) $ac_c" 1>&6
  1142. else
  1143.   
  1144. cat > conftest.$ac_ext <<EOF
  1145. #line 1146 "configure"
  1146. #include "confdefs.h"
  1147. #ifdef _AIX
  1148.   yes
  1149. #endif
  1150.  
  1151. EOF
  1152. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1153.   egrep "yes" >/dev/null 2>&1; then
  1154.   rm -rf conftest*
  1155.   ac_cv_sys_aix=yes
  1156. else
  1157.   rm -rf conftest*
  1158.   ac_cv_sys_aix=no
  1159. fi
  1160. rm -f conftest*
  1161.  
  1162. fi
  1163.  
  1164. echo "$ac_t""$ac_cv_sys_aix" 1>&6
  1165. if test $ac_cv_sys_aix = yes; then
  1166.   cat >> confdefs.h <<\EOF
  1167. #define _ALL_SOURCE 1
  1168. EOF
  1169.  
  1170. fi
  1171.  
  1172. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  1173. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1174. echo "configure:1175: checking for minix/config.h" >&5
  1175. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1176.   echo $ac_n "(cached) $ac_c" 1>&6
  1177. else
  1178.   cat > conftest.$ac_ext <<EOF
  1179. #line 1180 "configure"
  1180. #include "confdefs.h"
  1181. #include <minix/config.h>
  1182. EOF
  1183. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1184. { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1185. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1186. if test -z "$ac_err"; then
  1187.   rm -rf conftest*
  1188.   eval "ac_cv_header_$ac_safe=yes"
  1189. else
  1190.   echo "$ac_err" >&5
  1191.   echo "configure: failed program was:" >&5
  1192.   cat conftest.$ac_ext >&5
  1193.   rm -rf conftest*
  1194.   eval "ac_cv_header_$ac_safe=no"
  1195. fi
  1196. rm -f conftest*
  1197. fi
  1198. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1199.   echo "$ac_t""yes" 1>&6
  1200.   MINIX=yes
  1201. else
  1202.   echo "$ac_t""no" 1>&6
  1203. MINIX=
  1204. fi
  1205.  
  1206. if test "$MINIX" = yes; then
  1207.   cat >> confdefs.h <<\EOF
  1208. #define _POSIX_SOURCE 1
  1209. EOF
  1210.  
  1211.   cat >> confdefs.h <<\EOF
  1212. #define _POSIX_1_SOURCE 2
  1213. EOF
  1214.  
  1215.   cat >> confdefs.h <<\EOF
  1216. #define _MINIX 1
  1217. EOF
  1218.  
  1219. fi
  1220.  
  1221. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1222. echo "configure:1223: checking for POSIXized ISC" >&5
  1223. if eval "test \"`echo '$''{'ac_cv_sys_isc_posix'+set}'`\" = set"; then
  1224.   echo $ac_n "(cached) $ac_c" 1>&6
  1225. else
  1226.   
  1227. if test -d /etc/conf/kconfig.d &&
  1228.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1229. then
  1230.   ac_cv_sys_isc_posix=yes
  1231. else
  1232.   ac_cv_sys_isc_posix=no
  1233. fi
  1234.  
  1235. fi
  1236.  
  1237. echo "$ac_t""$ac_cv_sys_isc_posix" 1>&6
  1238. if test $ac_cv_sys_isc_posix = yes; then
  1239.   ISC=yes # If later tests want to check for ISC.
  1240.   cat >> confdefs.h <<\EOF
  1241. #define _POSIX_SOURCE 1
  1242. EOF
  1243.  
  1244.   if test "$GCC" = yes; then
  1245.     CC="$CC -posix"
  1246.   else
  1247.     CC="$CC -Xp"
  1248.   fi
  1249. else
  1250.   ISC=
  1251. fi
  1252.  
  1253.  
  1254.  
  1255. PACKAGE=libiconv
  1256. # Check whether --enable-static or --disable-static was given.
  1257. if test "${enable_static+set}" = set; then
  1258.   enableval="$enable_static"
  1259.   p=${PACKAGE-default}
  1260. case "$enableval" in
  1261. yes) enable_static=yes ;;
  1262. no) enable_static=no ;;
  1263. *)
  1264.   enable_static=no
  1265.   # Look at the argument we got.  We use all the common list separators.
  1266.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1267.   for pkg in $enableval; do
  1268.     if test "X$pkg" = "X$p"; then
  1269.       enable_static=yes
  1270.     fi
  1271.   done
  1272.   IFS="$ac_save_ifs"
  1273.   ;;
  1274. esac
  1275. else
  1276.   enable_static=no
  1277. fi
  1278.  
  1279. # Check whether --enable-shared or --disable-shared was given.
  1280. if test "${enable_shared+set}" = set; then
  1281.   enableval="$enable_shared"
  1282.   p=${PACKAGE-default}
  1283. case "$enableval" in
  1284. yes) enable_shared=yes ;;
  1285. no) enable_shared=no ;;
  1286. *)
  1287.   enable_shared=no
  1288.   # Look at the argument we got.  We use all the common list separators.
  1289.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1290.   for pkg in $enableval; do
  1291.     if test "X$pkg" = "X$p"; then
  1292.       enable_shared=yes
  1293.     fi
  1294.   done
  1295.   IFS="$ac_save_ifs"
  1296.   ;;
  1297. esac
  1298. else
  1299.   enable_shared=yes
  1300. fi
  1301.  
  1302. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1303. if test "${with_gnu_ld+set}" = set; then
  1304.   withval="$with_gnu_ld"
  1305.   test "$withval" = no || with_gnu_ld=yes
  1306. else
  1307.   with_gnu_ld=no
  1308. fi
  1309.  
  1310.  
  1311. ac_prog=ld
  1312. if test "$ac_cv_prog_gcc" = yes; then
  1313.   # Check if gcc -print-prog-name=ld gives a path.
  1314.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1315. echo "configure:1316: checking for ld used by GCC" >&5
  1316.   ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1317.   case "$ac_prog" in
  1318.   # Accept absolute paths.
  1319.   /* | A-Za-z:\\*)
  1320.     test -z "$LD" && LD="$ac_prog"
  1321.     ;;
  1322.   "")
  1323.     # If it fails, then pretend we aren't using GCC.
  1324.     ac_prog=ld
  1325.     ;;
  1326.   *)
  1327.     # If it is relative, then search for the first ld in PATH.
  1328.     with_gnu_ld=unknown
  1329.     ;;
  1330.   esac
  1331. elif test "$with_gnu_ld" = yes; then
  1332.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1333. echo "configure:1334: checking for GNU ld" >&5
  1334. else
  1335.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1336. echo "configure:1337: checking for non-GNU ld" >&5
  1337. fi
  1338. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1339.   echo $ac_n "(cached) $ac_c" 1>&6
  1340. else
  1341.   if test -z "$LD"; then
  1342.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1343.   for ac_dir in $PATH; do
  1344.     test -z "$ac_dir" && ac_dir=.
  1345.     if test -f "$ac_dir/$ac_prog"; then
  1346.       ac_cv_path_LD="$ac_dir/$ac_prog"
  1347.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1348.       # but apparently some GNU ld's only accept -v.
  1349.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1350.       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1351.     test "$with_gnu_ld" != no && break
  1352.       else
  1353.         test "$with_gnu_ld" != yes && break
  1354.       fi
  1355.     fi
  1356.   done
  1357.   IFS="$ac_save_ifs"
  1358. else
  1359.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1360. fi
  1361. fi
  1362.  
  1363. LD="$ac_cv_path_LD"
  1364. if test -n "$LD"; then
  1365.   echo "$ac_t""$LD" 1>&6
  1366. else
  1367.   echo "$ac_t""no" 1>&6
  1368. fi
  1369. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1370.  
  1371. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1372. echo "configure:1373: checking if the linker ($LD) is GNU ld" >&5
  1373. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1374.   echo $ac_n "(cached) $ac_c" 1>&6
  1375. else
  1376.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1377. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1378.   ac_cv_prog_gnu_ld=yes
  1379. else
  1380.   ac_cv_prog_gnu_ld=no
  1381. fi
  1382. fi
  1383. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1384.  
  1385.  
  1386. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1387. echo "configure:1388: checking for BSD-compatible nm" >&5
  1388. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1389.   echo $ac_n "(cached) $ac_c" 1>&6
  1390. else
  1391.   case "$NM" in
  1392. /* | A-Za-z:\\*)
  1393.   ac_cv_path_NM="$NM" # Let the user override the test with a path.
  1394.   ;;
  1395. *)
  1396.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1397.   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
  1398.     test -z "$ac_dir" && ac_dir=.
  1399.     if test -f $ac_dir/nm; then
  1400.       # Check to see if the nm accepts a BSD-compat flag.
  1401.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1402.       #   nm: unknown option "B" ignored
  1403.       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1404.         ac_cv_path_NM="$ac_dir/nm -B"
  1405.       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1406.         ac_cv_path_NM="$ac_dir/nm -p"
  1407.       else
  1408.         ac_cv_path_NM="$ac_dir/nm"
  1409.       fi
  1410.       break
  1411.     fi
  1412.   done
  1413.   IFS="$ac_save_ifs"
  1414.   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1415.   ;;
  1416. esac
  1417. fi
  1418.  
  1419. NM="$ac_cv_path_NM"
  1420. echo "$ac_t""$NM" 1>&6
  1421.  
  1422.  
  1423. # Always use our own libtool.
  1424. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1425.  
  1426. # Check for any special flags to pass to ltconfig.
  1427. libtool_flags=
  1428. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1429. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1430. test "$silent" = yes && libtool_flags="$libtool_flags --silent"
  1431. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1432. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1433.  
  1434. # Some flags need to be propagated to the compiler or linker for good
  1435. # libtool support.
  1436. case "$host" in
  1437. *-*-irix6*)
  1438.   # Find out which ABI we are using.
  1439.   echo '#line 1440 "configure"' > conftest.$ac_ext
  1440.   if { (eval echo configure:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1441.     case "`/usr/bin/file conftest.o`" in
  1442.     *32-bit*)
  1443.       LD="${LD-ld} -32"
  1444.       ;;
  1445.     *N32*)
  1446.       LD="${LD-ld} -n32"
  1447.       ;;
  1448.     *64-bit*)
  1449.       LD="${LD-ld} -64"
  1450.       ;;
  1451.     esac
  1452.   fi
  1453.   rm -rf conftest*
  1454.   ;;
  1455.  
  1456. *-*-sco3.2v5*)
  1457.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1458.   CFLAGS="$CFLAGS -belf"
  1459.   ;;
  1460. esac
  1461.  
  1462. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1463. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1464. LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
  1465. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
  1466. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
  1467. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1468.  
  1469.  
  1470.  
  1471.  
  1472. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  1473. echo "configure:1474: checking for iconv" >&5
  1474. if eval "test \"`echo '$''{'cl_cv_func_iconv'+set}'`\" = set"; then
  1475.   echo $ac_n "(cached) $ac_c" 1>&6
  1476. else
  1477.   
  1478. cl_cv_func_iconv=no
  1479. cl_cv_lib_iconv=no
  1480. cat > conftest.$ac_ext <<EOF
  1481. #line 1482 "configure"
  1482. #include "confdefs.h"
  1483. #include <stdlib.h>
  1484. #include <iconv.h>
  1485. int main() {
  1486. iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);
  1487. ; return 0; }
  1488. EOF
  1489. if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1490.   rm -rf conftest*
  1491.   cl_cv_func_iconv=yes
  1492. else
  1493.   echo "configure: failed program was:" >&5
  1494.   cat conftest.$ac_ext >&5
  1495. fi
  1496. rm -f conftest*
  1497. if test "$cl_cv_func_iconv" = no; then
  1498. cl_save_LIBS="$LIBS"
  1499. LIBS="$LIBS -liconv"
  1500. cat > conftest.$ac_ext <<EOF
  1501. #line 1502 "configure"
  1502. #include "confdefs.h"
  1503. #include <stdlib.h>
  1504. #include <iconv.h>
  1505. int main() {
  1506. iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);
  1507. ; return 0; }
  1508. EOF
  1509. if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1510.   rm -rf conftest*
  1511.   cl_cv_lib_iconv=yes
  1512. cl_cv_func_iconv=yes
  1513. else
  1514.   echo "configure: failed program was:" >&5
  1515.   cat conftest.$ac_ext >&5
  1516. fi
  1517. rm -f conftest*
  1518. LIBS="$cl_save_LIBS"
  1519. fi
  1520.  
  1521. fi
  1522. echo "$ac_t""$cl_cv_func_iconv" 1>&6
  1523. if test "$cl_cv_func_iconv" = yes; then
  1524.   cat >> confdefs.h <<\EOF
  1525. #define HAVE_ICONV 1
  1526. EOF
  1527.  
  1528. echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
  1529. echo "configure:1530: checking for iconv declaration" >&5
  1530. if eval "test \"`echo '$''{'cl_cv_proto_iconv'+set}'`\" = set"; then
  1531.   echo $ac_n "(cached) $ac_c" 1>&6
  1532. else
  1533.   
  1534. cat > conftest.$ac_ext <<EOF
  1535. #line 1536 "configure"
  1536. #include "confdefs.h"
  1537.  
  1538. #include <stdlib.h>
  1539. #ifdef HAVE_UNISTD_H
  1540. #include <unistd.h>
  1541. #endif
  1542. #include <sys/types.h>
  1543. #include <iconv.h>
  1544.  
  1545. extern
  1546. #ifdef __cplusplus
  1547. "C"
  1548. #endif
  1549.  
  1550. #if defined(__STDC__) || defined(__cplusplus)
  1551. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);
  1552. #else
  1553. size_t iconv();
  1554. #endif
  1555.  
  1556. int main() {
  1557.  
  1558. ; return 0; }
  1559. EOF
  1560. if { (eval echo configure:1561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1561.   rm -rf conftest*
  1562.   cl_cv_proto_iconv_arg1=""
  1563. else
  1564.   echo "configure: failed program was:" >&5
  1565.   cat conftest.$ac_ext >&5
  1566.   rm -rf conftest*
  1567.   cl_cv_proto_iconv_arg1="const"
  1568. fi
  1569. rm -f conftest*
  1570.  
  1571.  
  1572. cl_cv_proto_iconv="extern size_t iconv (iconv_t cd, $cl_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);"
  1573. fi
  1574.  
  1575. cl_cv_proto_iconv=`echo "$cl_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  1576. echo "$ac_t""${ac_tt}$cl_cv_proto_iconv" 1>&6
  1577.  
  1578.  
  1579. cat >> confdefs.h <<EOF
  1580. #define ICONV_CONST $cl_cv_proto_iconv_arg1
  1581. EOF
  1582.  
  1583. fi
  1584. LIBICONV=
  1585. if test "$cl_cv_lib_iconv" = yes; then
  1586.   LIBICONV="-liconv"
  1587. fi
  1588.  
  1589.  
  1590. if test $cl_cv_func_iconv = yes -a -z "$cl_cv_proto_iconv_arg1"; then
  1591.   ICONV_CONST=""
  1592. else
  1593.   ICONV_CONST="const"
  1594. fi
  1595.  
  1596.  
  1597. echo $ac_n "checking byte ordering""... $ac_c" 1>&6
  1598. echo "configure:1599: checking byte ordering" >&5
  1599. if eval "test \"`echo '$''{'cl_cv_sys_endian'+set}'`\" = set"; then
  1600.   echo $ac_n "(cached) $ac_c" 1>&6
  1601. else
  1602.   
  1603. if test "$cross_compiling" = yes; then
  1604.   : # must guess the endianness
  1605.  
  1606. else
  1607.   cat > conftest.$ac_ext <<EOF
  1608. #line 1609 "configure"
  1609. #include "confdefs.h"
  1610. #ifdef __cplusplus
  1611. extern "C" void exit(int);
  1612. #endif
  1613. int main () {
  1614.   /* Are we little or big endian?  From Harbison&Steele.  */
  1615.   union
  1616.   {
  1617.     long l;
  1618.     char c[sizeof (long)];
  1619.   } u;
  1620.   u.l = 1;
  1621.   exit (u.c[0] == 1);
  1622. }
  1623. EOF
  1624. if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1625. then
  1626.   cl_cv_sys_endian="big endian"
  1627. else
  1628.   echo "configure: failed program was:" >&5
  1629.   cat conftest.$ac_ext >&5
  1630.   rm -fr conftest*
  1631.   cl_cv_sys_endian="little endian"
  1632. fi
  1633. if test -f core; then
  1634.   coredir=core`/bin/sh -c 'echo $$'`
  1635.   mkdir $coredir
  1636.   cp confdefs.h $coredir/confdefs.h
  1637.   mv conftest.c $coredir/conftest.c
  1638.   mv conftest $coredir/conftest
  1639.   mv core $coredir/core
  1640.   echo "warning: test program dumped core -- see subdirectory $coredir"
  1641. fi
  1642. rm -fr conftest*
  1643. fi
  1644.  
  1645. if test -z "$cl_cv_sys_endian"; then
  1646. cat > conftest.$ac_ext <<EOF
  1647. #line 1648 "configure"
  1648. #include "confdefs.h"
  1649. #if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
  1650.   yes
  1651. #endif
  1652.  
  1653. EOF
  1654. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1655.   egrep "yes" >/dev/null 2>&1; then
  1656.   rm -rf conftest*
  1657.   cl_cv_sys_endian="big endian"
  1658. fi
  1659. rm -f conftest*
  1660.  
  1661. fi
  1662. if test -z "$cl_cv_sys_endian"; then
  1663. cat > conftest.$ac_ext <<EOF
  1664. #line 1665 "configure"
  1665. #include "confdefs.h"
  1666. #if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
  1667.   yes
  1668. #endif
  1669.  
  1670. EOF
  1671. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1672.   egrep "yes" >/dev/null 2>&1; then
  1673.   rm -rf conftest*
  1674.   cl_cv_sys_endian="little endian"
  1675. fi
  1676. rm -f conftest*
  1677.  
  1678. fi
  1679. if test -z "$cl_cv_sys_endian"; then
  1680. cl_cv_sys_endian="guessing little endian"
  1681. fi
  1682.  
  1683. fi
  1684. echo "$ac_t""$cl_cv_sys_endian" 1>&6
  1685. case "$cl_cv_sys_endian" in
  1686.   *little*) cat >> confdefs.h <<\EOF
  1687. #define WORDS_LITTLEENDIAN 1
  1688. EOF
  1689.  ;;
  1690.   *big*)    ;;
  1691. esac
  1692.  
  1693.  
  1694.  
  1695. OS=""
  1696. case "$host_os" in
  1697.   linux*)   OS="linux" ;;
  1698.   solaris*) OS="solaris" ;;
  1699.   osf*)     OS="osf" ;;
  1700. esac
  1701. if test -n "$OS"; then
  1702.   
  1703.   
  1704.   PLUGLIB="libiconv_plug.so"
  1705. else
  1706.   PLUGLIB=""
  1707. fi
  1708.  
  1709.  
  1710. if test -d "${srcdir}/tests"; then
  1711.   TESTS_MAKEFILE=tests/Makefile
  1712. else
  1713.   TESTS_MAKEFILE=""
  1714. fi
  1715. trap '' 1 2 15
  1716. cat > confcache <<\EOF
  1717. # This file is a shell script that caches the results of configure
  1718. # tests run on this system so they can be shared between configure
  1719. # scripts and configure runs.  It is not useful on other systems.
  1720. # If it contains results you don't want to keep, you may remove or edit it.
  1721. #
  1722. # By default, configure uses ./config.cache as the cache file,
  1723. # creating it if it does not exist already.  You can give configure
  1724. # the --cache-file=FILE option to use a different cache file; that is
  1725. # what configure does when it calls configure scripts in
  1726. # subdirectories, so they share the cache.
  1727. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1728. # config.status only pays attention to the cache file if you give it the
  1729. # --recheck option to rerun configure.
  1730. #
  1731. EOF
  1732. # The following way of writing the cache mishandles newlines in values,
  1733. # but we know of no workaround that is simple, portable, and efficient.
  1734. # So, don't put newlines in cache variables' values.
  1735. # Ultrix sh set writes to stderr and can't be redirected directly,
  1736. # and sets the high bit in the cache file unless we assign to the vars.
  1737. (set) 2>&1 |
  1738.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1739.   *ac_space=\ *)
  1740.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1741.     # turns \\\\ into \\, and sed turns \\ into \).
  1742.     sed -n \
  1743.       -e "s/'/'\\\\''/g" \
  1744.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1745.     ;;
  1746.   *)
  1747.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1748.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1749.     ;;
  1750.   esac >> confcache
  1751. if cmp -s $cache_file confcache; then
  1752.   :
  1753. else
  1754.   if test -w $cache_file; then
  1755.     echo "updating cache $cache_file"
  1756.     cat confcache > $cache_file
  1757.   else
  1758.     echo "not updating unwritable cache $cache_file"
  1759.   fi
  1760. fi
  1761. rm -f confcache
  1762.  
  1763. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1764.  
  1765. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1766. # Let make expand exec_prefix.
  1767. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1768.  
  1769. # Any assignment to VPATH causes Sun make to only execute
  1770. # the first set of double-colon rules, so remove it if not needed.
  1771. # If there is a colon in the path, we need to keep it.
  1772. if test "x$srcdir" = x.; then
  1773.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1774. fi
  1775.  
  1776. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1777.  
  1778. DEFS=-DHAVE_CONFIG_H
  1779.  
  1780. # Without the "./", some shells look in PATH for config.status.
  1781. : ${CONFIG_STATUS=./config.status}
  1782.  
  1783. echo creating $CONFIG_STATUS
  1784. rm -f $CONFIG_STATUS
  1785. cat > $CONFIG_STATUS <<EOF
  1786. #! /bin/sh
  1787. # Generated automatically by configure.
  1788. # Run this file to recreate the current configuration.
  1789. # This directory was configured as follows,
  1790. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1791. #
  1792. # $0 $ac_configure_args
  1793. #
  1794. # Compiler output produced by configure, useful for debugging
  1795. # configure, is in ./config.log if it exists.
  1796.  
  1797. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1798. for ac_option
  1799. do
  1800.   case "\$ac_option" in
  1801.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1802.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1803.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1804.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1805.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1806.     exit 0 ;;
  1807.   -help | --help | --hel | --he | --h)
  1808.     echo "\$ac_cs_usage"; exit 0 ;;
  1809.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1810.   esac
  1811. done
  1812.  
  1813. ac_given_srcdir=$srcdir
  1814.  
  1815. trap 'rm -fr `echo "Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1816. EOF
  1817. cat >> $CONFIG_STATUS <<EOF
  1818.  
  1819. # Protect against being on the right side of a sed subst in config.status.
  1820. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1821.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1822. $ac_vpsub
  1823. $extrasub
  1824. s%@SHELL@%$SHELL%g
  1825. s%@CFLAGS@%$CFLAGS%g
  1826. s%@CPPFLAGS@%$CPPFLAGS%g
  1827. s%@CXXFLAGS@%$CXXFLAGS%g
  1828. s%@FFLAGS@%$FFLAGS%g
  1829. s%@DEFS@%$DEFS%g
  1830. s%@LDFLAGS@%$LDFLAGS%g
  1831. s%@LIBS@%$LIBS%g
  1832. s%@exec_prefix@%$exec_prefix%g
  1833. s%@prefix@%$prefix%g
  1834. s%@program_transform_name@%$program_transform_name%g
  1835. s%@bindir@%$bindir%g
  1836. s%@sbindir@%$sbindir%g
  1837. s%@libexecdir@%$libexecdir%g
  1838. s%@datadir@%$datadir%g
  1839. s%@sysconfdir@%$sysconfdir%g
  1840. s%@sharedstatedir@%$sharedstatedir%g
  1841. s%@localstatedir@%$localstatedir%g
  1842. s%@libdir@%$libdir%g
  1843. s%@includedir@%$includedir%g
  1844. s%@oldincludedir@%$oldincludedir%g
  1845. s%@infodir@%$infodir%g
  1846. s%@mandir@%$mandir%g
  1847. s%@SET_MAKE@%$SET_MAKE%g
  1848. s%@CC@%$CC%g
  1849. s%@CPP@%$CPP%g
  1850. s%@RANLIB@%$RANLIB%g
  1851. s%@INSTALL@%$INSTALL%g
  1852. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1853. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1854. s%@CP@%$CP%g
  1855. s%@LN@%$LN%g
  1856. s%@LN_S@%$LN_S%g
  1857. s%@host@%$host%g
  1858. s%@host_cpu@%$host_cpu%g
  1859. s%@host_vendor@%$host_vendor%g
  1860. s%@host_os@%$host_os%g
  1861. s%@LD@%$LD%g
  1862. s%@NM@%$NM%g
  1863. s%@LIBTOOL@%$LIBTOOL%g
  1864. s%@LIBICONV@%$LIBICONV%g
  1865. s%@ICONV_CONST@%$ICONV_CONST%g
  1866. s%@OS@%$OS%g
  1867. s%@GCC@%$GCC%g
  1868. s%@PLUGLIB@%$PLUGLIB%g
  1869.  
  1870. CEOF
  1871. EOF
  1872.  
  1873. cat >> $CONFIG_STATUS <<\EOF
  1874.  
  1875. # Split the substitutions into bite-sized pieces for seds with
  1876. # small command number limits, like on Digital OSF/1 and HP-UX.
  1877. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1878. ac_file=1 # Number of current file.
  1879. ac_beg=1 # First line for current file.
  1880. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1881. ac_more_lines=:
  1882. ac_sed_cmds=""
  1883. while $ac_more_lines; do
  1884.   if test $ac_beg -gt 1; then
  1885.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1886.   else
  1887.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1888.   fi
  1889.   if test ! -s conftest.s$ac_file; then
  1890.     ac_more_lines=false
  1891.     rm -f conftest.s$ac_file
  1892.   else
  1893.     if test -z "$ac_sed_cmds"; then
  1894.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1895.     else
  1896.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1897.     fi
  1898.     ac_file=`expr $ac_file + 1`
  1899.     ac_beg=$ac_end
  1900.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1901.   fi
  1902. done
  1903. if test -z "$ac_sed_cmds"; then
  1904.   ac_sed_cmds=cat
  1905. fi
  1906. EOF
  1907.  
  1908. cat >> $CONFIG_STATUS <<EOF
  1909.  
  1910. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h"}
  1911. EOF
  1912. cat >> $CONFIG_STATUS <<\EOF
  1913. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1914.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1915.   case "$ac_file" in
  1916.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1917.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1918.   *) ac_file_in="${ac_file}.in" ;;
  1919.   esac
  1920.  
  1921.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1922.  
  1923.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1924.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1925.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1926.     # The file is in a subdirectory.
  1927.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1928.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1929.     # A "../" for each directory in $ac_dir_suffix.
  1930.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1931.   else
  1932.     ac_dir_suffix= ac_dots=
  1933.   fi
  1934.  
  1935.   case "$ac_given_srcdir" in
  1936.   .)  srcdir=.
  1937.       if test -z "$ac_dots"; then top_srcdir=.
  1938.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1939.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1940.   *) # Relative path.
  1941.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1942.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1943.   esac
  1944.  
  1945.  
  1946.   echo creating "$ac_file"
  1947.   rm -f "$ac_file"
  1948.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1949.   case "$ac_file" in
  1950.   *Makefile*) ac_comsub="1i\\
  1951. # $configure_input" ;;
  1952.   *) ac_comsub= ;;
  1953.   esac
  1954.  
  1955.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1956.   sed -e "$ac_comsub
  1957. s%@configure_input@%$configure_input%g
  1958. s%@srcdir@%$srcdir%g
  1959. s%@top_srcdir@%$top_srcdir%g
  1960. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1961. fi; done
  1962. rm -f conftest.s*
  1963.  
  1964. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1965. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1966. #
  1967. # ac_d sets the value in "#define NAME VALUE" lines.
  1968. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1969. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1970. ac_dC='\3'
  1971. ac_dD='%g'
  1972. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1973. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1974. ac_uB='\([     ]\)%\1#\2define\3'
  1975. ac_uC=' '
  1976. ac_uD='\4%g'
  1977. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1978. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1979. ac_eB='$%\1#\2define\3'
  1980. ac_eC=' '
  1981. ac_eD='%g'
  1982. # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
  1983. ac_fA='s%^\([     ]*\)#\([     ]*\)define\([     ][     ]*\)'
  1984. ac_fB='$%\1#\2define\3'
  1985. ac_fC=' '
  1986. ac_fD='%g'
  1987.  
  1988. if test "${CONFIG_HEADERS+set}" != set; then
  1989. EOF
  1990. cat >> $CONFIG_STATUS <<EOF
  1991.   CONFIG_HEADERS="src/config.h"
  1992. EOF
  1993. cat >> $CONFIG_STATUS <<\EOF
  1994. fi
  1995. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1996.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1997.   case "$ac_file" in
  1998.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1999.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2000.   *) ac_file_in="${ac_file}.in" ;;
  2001.   esac
  2002.  
  2003.   echo creating $ac_file
  2004.  
  2005.   rm -f conftest.frag conftest.in conftest.out
  2006.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2007.   cat $ac_file_inputs > conftest.in
  2008.  
  2009. EOF
  2010.  
  2011. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2012. # the proper values into config.h.in to produce config.h.  And first:
  2013. # Protect against being on the right side of a sed subst in config.status.
  2014. # Protect against being in an unquoted here document in config.status.
  2015. rm -f conftest.vals
  2016. cat > conftest.hdr <<\EOF
  2017. s/[\\&%]/\\&/g
  2018. s%[\\$`]%\\&%g
  2019. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2020. s%ac_d%ac_u%gp
  2021. s%ac_u%ac_e%gp
  2022. s%ac_e%ac_f%gp
  2023. EOF
  2024. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2025. rm -f conftest.hdr
  2026.  
  2027.  
  2028. # Break up conftest.vals because some shells have a limit on
  2029. # the size of here documents, and old seds have small limits too.
  2030.  
  2031. rm -f conftest.tail
  2032. while :
  2033. do
  2034.   ac_lines=`grep -c . conftest.vals`
  2035.   # grep -c gives empty output for an empty file on some AIX systems.
  2036.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2037.   # Write a limited-size here document to conftest.frag.
  2038.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2039.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2040.   echo 'CEOF
  2041.   sed -f conftest.frag conftest.in > conftest.out
  2042.   rm -f conftest.in
  2043.   mv conftest.out conftest.in
  2044. ' >> $CONFIG_STATUS
  2045.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2046.   rm -f conftest.vals
  2047.   mv conftest.tail conftest.vals
  2048. done
  2049. rm -f conftest.vals
  2050.  
  2051. cat >> $CONFIG_STATUS <<\EOF
  2052.   rm -f conftest.frag conftest.h
  2053.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2054.   cat conftest.in >> conftest.h
  2055.   rm -f conftest.in
  2056.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2057.     echo "$ac_file is unchanged"
  2058.     rm -f conftest.h
  2059.   else
  2060.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2061.     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2062.     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2063.       # The file is in a subdirectory.
  2064.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2065.     fi
  2066.     rm -f $ac_file
  2067.     mv conftest.h $ac_file
  2068.   fi
  2069. fi; done
  2070.  
  2071. EOF
  2072. cat >> $CONFIG_STATUS <<EOF
  2073.  
  2074. EOF
  2075. cat >> $CONFIG_STATUS <<\EOF
  2076.  
  2077. exit 0
  2078. EOF
  2079. chmod +x $CONFIG_STATUS
  2080. rm -fr confdefs* $ac_clean_files
  2081. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2082.  
  2083.